Namespace.Use("Application.Sensor.DataSet", function(ns) {
    //
    //  Classes.
    //
    var DataSetConfiguration = Polymorphic.Create(
        [String, String, Number, Number],
        function(name, color, range_min, range_max) {
            //  Check the range.
            if (range_min > range_max) {
                throw "Invalid range.";
            }

            //
            //  Public methods.
            //
            this.GetName = function() {
                return name;
            };
            this.GetColor = function() {
                return color;
            };
            this.GetRange = function() {
                return [range_min, range_max];
            };
        }
    );

    //  Export public APIs / classes.
    Namespace.Export(ns, "DataSetConfiguration", DataSetConfiguration);
});
